package com.ruicar.afs.cloud.apply.admin.manage.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import com.ruicar.afs.cloud.common.modules.apply.enums.LockFlagEnum;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @author: Lee
 * @date: 2020/5/11 19:39
 * @description: 见证人信息
 */
@Data
@Accessors(chain = true)
@TableName(value = "sys_channel_witness_info", autoResultMap = true)
public class SysChannelWitnessInfo extends BaseEntity<SysChannelWitnessInfo> {

    /**
     * 渠道id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long channelId;
    /**
     * 业务属性;新车、二手车
     */
    private String businessAttributes;
    /**
     * 见证人姓名
     */
    private String witnessName;
    /**
     * 见证人身份证号码
     */
    private String witnessIdCard;
    /**
     * 见证人授权有效期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date witnessValidityAuthorization;
    /**
     * 启用/停用原因
     */
    private String startStopReason;
    /**
     * 状态;启用、停用
     */
    private LockFlagEnum status;
    /**
     * 审批通过时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date approveTime;
    /**
     * 停用时间
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private Date ceaseTime;
}
